<?php

include_once 'DataProvider.php';

class User {
    public $dataProvider;

    public function __construct() {
        $this->dataProvider = new dataProvider();
    }
    public function ThemUser($data){
        $sql = "insert into `user` (username,pass,sex,email,address,birthday,type,firstname,lastname,phone) values ('$data[username]','$data[pass]','$data[sex]','$data[email]','$data[address]','$data[birthday]','1','$data[firstname]','$data[lastname]','$data[phone]')";
        return DataProvider::ExecuteQuery($sql);
    }
}

?>
